var Imp = JavaImporter(
                    Packages.java.lang,
                    Packages.java.io,
                    Packages.com.hz.actor,
                    Packages.com.hz.main,
                    Packages.com.hz.map,
                    Packages.com.hz.ui,
                    Packages.com.hz.core,
                    Packages.com.hz.common,
                    Packages.com.hz.net,
                    Packages.com.google.gson,
                    Packages.java.util.concurrent
                            );

with(Imp){
    // var m = _.find(GameWorld.myPlayer.missionList, function(m){return m && m.name == "前往亡者之地"});
    // if(m)
    //     cmd.log(m.submitJumpMapID+ "|" +  m.npcId);
    // else{
    //     cmd.log("找不到任务")
    // }

    // var npcs = GameWorld.getNPCList();
    // _.each(npcs, function(npc){
    //     cmd.log(npc.getName() + ":" + npc.getId());
    // });
/**
 * 31175 迎客殿 30 3
 * 16    神剑广场 3  44
 * 
 * 
 * 
 * 
 * 
 * 
 */

cmd.closeAllUI();
// cmd.log("---------------------");
cmd.init({
    attrConfig:[10,0,0,0,0]
});

// cmd.alert(ServerInfo.lastLoginAreaId);
// cmd.alert(cmd.player());
// GameWorld.myPlayer.autoMoveControlList.addElement(Control.createMoveTo(GameWorld.myPlayer.getId(), 14, 9));
// cmd.delay(500);
// GameWorld.myPlayer.clearAutoMoveList();




//cmd.acceptMission("丛林守卫","消灭腐化的生物");
// cmd.acceptMission("日常任务列表","精灵之森林初阶段");
// cmd.acceptMission("日常任务列表","封印墓地初阶任务");

//接任务
// var mission = cmd.acceptMission("怒风守卫利昂","前往亡者之地");
// var mission = cmd.acceptBattleMission("","击败邪灵腐化术师");
// cmd.log("-----" + mission.name);
// mission.doAcceptEndCheck();
//杀怪, 做任务
// cmd.killMonster([{name:"邪灵屠虐者",count:3}]);
//交任务
// cmd.finishMission("前往亡者之地");
// cmd.acceptMission("特攻队长-史刚","（精英任务）反击准备工作");

// cmd.finishMission("（精英任务）反击准备工作");
// cmd.cuitableEquip();
// cmd.cuitableEquip();
// var equips = cmd.cuitableEquip();

// _.each(equips, function(e){
//     cmd.log(e.name + "," + e.type + "," +e.slotPos);
// })

    // public short reqAgi;
    // public short reqCon;
    // public short reqIlt;
    // public byte reqLv;
    // public short reqStr;
    // public short reqWis;
// cmd.log(equips.length);
// cmd.killMonsterWithItem(["腐化尸"], "防腐化药剂", 5);
// cmd.test();


// cmd.missionAutoMove("医疗药品短缺");
// cmd.realMove(2,13);

// cnd.alert(new com.google.gson.Gson().toJson(GameWorld.myPlayer));
// cmd.finishMission("怒风族长老","前往亡者之地");
// cmd.log("任务结束");
//真实移动 遇怪
// cmd.alert(cmd.getPagItems().length);
// cmd.useConsumableItem("活力药草");
//cmd.alert("杀死怪物完毕");

//cmd.abandonMission("消灭腐化的生物");
// cmd.alert(GameWorld.myPlayer.getPet().getName());
// cmd.log(core.CONFIG_MAP.get("vertx").eventBus().send(GameWorld.myPlayer.getId(),JSON.stringfiy({
//     "aa":1,
//     "body":"222"
// })));
// core.CONFIG_MAP.get("vertx").eventBus().send(GameWorld.myPlayer.getId(), "cmd.alert('这是测试数据111')", function(message){
//     cmd.log(message.body());
// });

}
// cmd.allocAttrPoint([1,0,0,0,0]);
// cmd.killMonster([{name:"白发刀客",count:10}]);

// cmd.finishMission("被封锁的桥");

// cmd.acceptMission("修真者梦龙","前往神剑广场");
// cmd.finishMission("前往神剑广场");
// cmd.test();
// cmd.acceptMission("世界村村长","初入世界 1");
// cmd.finishMission("初入世界 1");
// cmd.acceptMission("云裳","初入世界 2");
// cmd.finishMission("初入世界 2");
// cmd.acceptMission("云裳","初入世界 3");
// cmd.finishMission("初入世界 3");
// cmd.acceptMission("东海","初入世界 4");
// cmd.killMonster([{name:"哈士奇", count:1}]);
// cmd.finishMission("初入世界 4");
// cmd.acceptMission("东海","初入世界 5");
// cmd.finishMission("初入世界 5");
// cmd.acceptMission("小悦","初入世界 6");
// cmd.killMonster([{name:"小偷", count:1}]);
// cmd.finishMission("初入世界 6");
// cmd.acceptMission("小悦","初入世界 7");
// cmd.finishMission("初入世界 7");
// cmd.acceptMission("悲剧哥","初入世界 8");
// cmd.finishMission("初入世界 8");
// cmd.acceptMission("井","井水");
// cmd.finishMission("井水");
// cmd.acceptMission("世界村村长","初入世界 9");
// cmd.finishMission("初入世界 9");
// cmd.acceptMission("轩姐","进入世界");
// cmd.finishMission("进入世界");
// cmd.jumpMap("迎客殿");
// cmd.acceptMission("迎客道人","蜀山的邀请函");
// cmd.finishMission("蜀山的邀请函");
// cmd.acceptMission("迎客道人","领路人【紫嫣】");
// cmd.finishMission("领路人【紫嫣】");
// cmd.acceptMission("紫嫣","小心后面！");
// cmd.killMonster([{name:"偷袭的箭手", count:4}]);
// cmd.finishMission("小心后面！");
// cmd.acceptMission("紫嫣","事情不简单");
// cmd.finishMission("事情不简单");
// cmd.acceptMission("紫嫣","帮助剑客韩松");
// cmd.killMonster([{name:"围攻的教众", count:8}]);
// cmd.finishMission("帮助剑客韩松");
// cmd.acceptMission("紫嫣","前往迎客殿");
// cmd.finishMission("前往迎客殿");
// cmd.acceptMission("紫嫣","阻止亥起进攻大殿");
// cmd.finishMission("阻止亥起进攻大殿");
// cmd.acceptMission("打败人王亥起","单挑的邀请");
// cmd.killMonster([{name:"亥起", count:1}]);
// cmd.finishMission("单挑的邀请");
// cmd.acceptMission("打败人王亥起","赢得单挑");
// cmd.finishMission("赢得单挑");
//cmd.acceptMission("紫嫣","阻止亥起进攻大殿"); 需要2次验证
//cmd.finishMission("阻止亥起进攻大殿");
// cmd.acceptMission("紫嫣","清除余党");
// cmd.finishMission("清除余党");
// cmd.acceptMission("剑客严人英","帮助剑客严人英");
// cmd.killMonster([{name:"魔教枪兵", count:10}]);
// cmd.finishMission("帮助剑客严人英");
// cmd.acceptMission("剑客严人英","帮助剑客李文衍");
// cmd.killMonster([{name:"魔教刀兵", count:10}]);
// cmd.finishMission("帮助剑客李文衍");
// cmd.acceptMission("紫嫣","前往神剑广场");
// cmd.finishMission("前往神剑广场");
// cmd.acceptMission("紫嫣","前往神剑广场");
// cmd.jumpMap("神剑广场");
// cmd.finishMission("前往神剑广场");
// cmd.acceptMission("紫嫣","修真者梦龙");
// cmd.finishMission("修真者梦龙");
// cmd.acceptMission("修真者梦龙","被封锁的桥");
// cmd.killMonster([{name:"魔教箭手",count:10},{name:"魔教修真者",count:10}]);
// cmd.finishMission("被封锁的桥");
// cmd.acceptMission("天王屠夫","击败魔教屠夫");
// cmd.killMonster([{name:"魔教屠夫", count:1}]);
// cmd.finishMission("击败魔教屠夫");
// cmd.acceptMission("天王屠夫","桥已打通");
// cmd.finishMission("桥已打通");
// cmd.acceptMission("修真者梦龙","前往神剑广场");
// cmd.finishMission("前往神剑广场");
// cmd.acceptMission("修真者梦龙","清扫剑阵周围");
// cmd.killMonster([{name:"魔教刀手", count:15}]);
// cmd.finishMission("清扫剑阵周围");
// cmd.acceptMission("修真者梦龙","启动天雷大阵");
// cmd.finishMission("启动天雷大阵");
// cmd.acceptMission("神剑核心","谁又偷袭？！");
// cmd.finishMission("谁又偷袭？！");
// cmd.acceptMission("魔教三雄","击败魔教三雄");
// cmd.killMonster([{name:"魔教三雄", count:3}]);
// cmd.finishMission("击败魔教三雄");
// cmd.acceptMission("魔教三雄","果然厉害");
// cmd.finishMission("果然厉害");
// cmd.acceptMission("梦龙","前往殿前广场");
// cmd.finishMission("前往殿前广场");
// cmd.acceptMission("修真者梦龙","清理刀客");
// cmd.killMonster([{name:"红发刀客",count:10},{name:"白发刀客",count:10},{name:"志天笑",count:1}]);
// cmd.finishMission("清理刀客");
// cmd.acceptMission("修真者梦龙","前往蜀山后山");
// cmd.finishMission("前往蜀山后山");
// cmd.acceptMission("修真者梦龙","消灭斑纹豹");
// cmd.killMonster([{name:"斑纹豹", count:20}]);
// cmd.finishMission("消灭斑纹豹");
// cmd.acceptMission("修真者梦龙","继续前进");
// cmd.finishMission("继续前进");
// cmd.acceptMission("修真者梦龙","帮助严峰");
// cmd.killMonster([{name:"魔教恶僧",count:10},{name:"魔教刺客",count:10}]);
// cmd.finishMission("帮助严峰");
// cmd.acceptMission("严峰","英雄救美");
// cmd.killMonster([{name:"魔教恶僧",count:10},{name:"魔教刺客",count:10}]);
// cmd.finishMission("英雄救美");
// cmd.acceptMission("丽莎","视察山道");
// cmd.finishMission("视察山道");
// cmd.acceptMission("修真者梦龙","狂风挡路");
// cmd.finishMission("狂风挡路");
// cmd.acceptMission("白日死","击败白日死");
// cmd.killMonster([{name:"白日死", count:1}]);
// cmd.finishMission("击败白日死");
// cmd.acceptMission("白日死","怪风已除");
// cmd.finishMission("怪风已除");
// cmd.acceptMission("修真者梦龙","前往镇妖塔");
// cmd.jumpMap("镇妖塔");
// cmd.finishMission("前往镇妖塔");
// cmd.acceptMission("修真者梦龙","助阵");
// cmd.finishMission("助阵");
// cmd.acceptMission("玄真道人","清除魔教刀客");
// cmd.killMonster([{name:"魔教刀客", count:20}]);
// cmd.finishMission("清除魔教刀客");
// cmd.acceptMission("玄真道人","清除剑客");
// cmd.killMonster([{name:"魔教剑客", count:20}]);
// cmd.finishMission("清除剑客");

// cmd.acceptMission("玄真道人","步步紧逼");
// cmd.acceptMission("吴用","击败魔天王吴用");
// cmd.acceptMission("魔天王吴星","击败魔天王吴星");

// cmd.finishMission("击败魔天王吴用");
// cmd.finishMission("击败魔天王吴星");
// cmd.finishMission("步步紧逼","百炼银龙剑");

// cmd.finishMission("击败魔教教主");

// cmd.acceptMission("教主任独行","强者的证明");
// cmd.finishMission("强者的证明");
// cmd.acceptMission("教主任独行","神龙降临");
// cmd.finishMission("神龙降临");
// cmd.acceptMission("神龙炎帝","你还是来迟了");
// cmd.finishMission("你还是来迟了");
// cmd.acceptMission("神龙炎帝","前往起源之地");
// cmd.jumpMap("起源之地");
// cmd.finishMission("前往起源之地");
// cmd.acceptMission("长老","英雄的诞生!");
// cmd.finishMission("英雄的诞生!");
// cmd.acceptMission("长老","获取新的城市");
// cmd.finishMission("获取新的城市");
// cmd.toCity();//进入自己的城市

//战士
cmd.specialCode("85ri8zcztd");
cmd.pollMail();
// cmd.equip("恐惧弩弓");
// cmd.pollMail();
// cmd.useConsumableItem("人物经验卷(30000）");


// cmd.acceptMission("世界村村长","初入世界 1");
// cmd.finishMission("初入世界 1");
// cmd.acceptMission("云裳","初入世界 2");
// cmd.finishMission("初入世界 2");
// cmd.acceptMission("云裳","初入世界 3");
// cmd.finishMission("初入世界 3");
// cmd.acceptMission("东海","初入世界 4");
// cmd.killMonster([{name:"哈士奇", count:1}]);
// cmd.finishMission("初入世界 4");
// cmd.acceptMission("东海","初入世界 5");
// cmd.finishMission("初入世界 5");
// cmd.acceptMission("小悦","初入世界 6");
// cmd.killMonster([{name:"小偷", count:1}]);
// cmd.finishMission("初入世界 6");
// cmd.acceptMission("小悦","初入世界 7");
// cmd.finishMission("初入世界 7");
// cmd.acceptMission("悲剧哥","初入世界 8");
// cmd.finishMission("初入世界 8");
// cmd.acceptMission("井","井水");
// cmd.finishMission("井水");
// cmd.acceptMission("世界村村长","初入世界 9");
// cmd.finishMission("初入世界 9");
// cmd.acceptMission("轩姐","进入世界");
// cmd.finishMission("进入世界");
// cmd.jumpMap("世界之门西方");
// cmd.acceptMission("雷恩长老","神选之人");
// cmd.finishMission("神选之人");
// cmd.acceptMission("雷恩长老","击退邪灵教徒");
// cmd.finishMission("击退邪灵教徒");
// cmd.acceptMission("狂战士珍尼","珍尼式战术！");
// cmd.killMonster([{name:"邪灵教徒杂兵", count:4}]);
// cmd.finishMission("珍尼式战术！");
// cmd.acceptMission("狂战士珍尼","乘胜追击！");
// cmd.killMonster([{name:"小恶魔", count:5}]);
// cmd.finishMission("乘胜追击！");
// cmd.acceptMission("狂战士珍尼","收集小恶魔之爪");
// cmd.killMonsterWithItem(["小恶魔"],"小恶魔之爪",5);//2
// cmd.finishMission("收集小恶魔之爪");
// cmd.acceptMission("狂战士珍尼","集合兵力");
// cmd.acceptMission("战士军哥","解救战士军哥");
// cmd.finishMission("解救战士军哥");
// cmd.finishMission("集合兵力");
// cmd.acceptMission("狂战士珍尼","击杀击败");
// cmd.npcBattle("邪灵屠夫","追上去剁了他!!");
// cmd.finishMission("击杀击败");
// cmd.acceptMission("雷恩长老","大地的腐化");
// cmd.acceptMission("雷恩长老","前往风之森林");
// cmd.jumpMap("风之森林");

// cmd.finishMission("前往风之森林");
// cmd.acceptMission("丛林守卫","腐化的森林");
// cmd.finishMission("腐化的森林");
// cmd.acceptMission("丛林守卫","消灭腐化的生物");
// cmd.killMonster([{name:"腐化猎豹",count:3},{name:"腐化野狼",count:3}]);
// cmd.finishMission("消灭腐化的生物");
// cmd.acceptMission("丛林守卫","侦察任务");
// cmd.finishMission("侦察任务");
// cmd.acceptMission("自然祭司","寻找治疗腐化的方法");

// cmd.killMonsterWithItem(["腐化野狼"],"未腐坏的毛皮",7);//5,打其他怪物是否也能够获得?
// cmd.killMonsterWithItem(["猎豹"],"腐坏的毛皮",5);//3,打其他怪物是否也能够获得?


// cmd.closeAllUI();
// cmd.finishMission("寻找治疗腐化的方法");//关闭UI
// cmd.acceptMission("怒风守卫利昂","亡者移动");
// cmd.killMonster([{name:"行尸", count:18}]);
// cmd.finishMission("亡者移动");
// cmd.acceptMission("怒风守卫利昂","消灭亡者");
// cmd.killMonster([{name:"行尸", count:18}]);
// cmd.finishMission("消灭亡者");
// cmd.acceptMission("怒风守卫利昂","幕后黑手");
// cmd.finishMission("幕后黑手");
// cmd.acceptMission("怒风守卫利昂","邪恶之人!");
// cmd.acceptMission("","亡者复活");
// cmd.killMonster([{name:"丛林守卫的尸体", count:1}]);
// cmd.finishMission("亡者复活");
// cmd.acceptMission("","击败邪灵腐化术师");
// cmd.finishMission("击败邪灵腐化术师");
// cmd.finishMission("邪恶之人!");
// cmd.acceptMission("怒风守卫利昂","前往亡者之地");
// cmd.jumpMap("亡者之地");
// cmd.finishMission("前往亡者之地");
// cmd.acceptMission("怒风族长老","腐化的源头");
// cmd.finishMission("腐化的源头");
// cmd.acceptMission("怒风族长老","防守工作");
// cmd.acceptMission("医疗分队长-雪莉","医疗药品短缺");


// cmd.killMonsterWithItem(["腐化尸","骸骨战士"],"防腐化药剂",8)//,5优化整理背包
// cmd.acceptMission("防守分队长-尼木","防守准备工作");
// cmd.closeAllUI();
// cmd.finishMission("医疗药品短缺");//关闭UI
// cmd.killMonster([{name:"腐化尸",count:8},{name:"骸骨战士",count:8}]);//可优化
// cmd.finishMission("防守准备工作");
// cmd.acceptMission("特攻队长-史刚","（精英任务）反击准备工作");
// cmd.killMonster([{name:"邪灵屠虐者", count:3}]);
// cmd.finishMission("（精英任务）反击准备工作");
// cmd.finishMission("防守工作");
// cmd.acceptMission("怒风族长老","反击行动");
// cmd.jumpMap("恐惧山谷");
// cmd.finishMission("反击行动");
// cmd.acceptMission("特攻队长-史刚","最后的突击!");
// cmd.killMonster([{name:"恐惧骸骨战士", count:20}]);
// cmd.finishMission("最后的突击!");
// cmd.acceptMission("丛林守卫-水雅","意想不到的援助");
// cmd.killMonster([{name:"恐惧行尸", count:20}]);
// cmd.finishMission("意想不到的援助");
// cmd.acceptMission("狂战士珍尼","珍尼突击！");
// cmd.killMonster([{name:"邪灵刺客", count:20}]);
// cmd.finishMission("珍尼突击！");
// cmd.acceptMission("狂战士珍尼","[精英任务击败恐惧食人魔统领");
// cmd.npcBattle("","攻击恐惧食人魔统领");
// cmd.finishMission("[精英任务击败恐惧食人魔统领");
// cmd.acceptMission("狂战士珍尼","进入邪灵圣堂");
// cmd.jumpMap("邪灵圣殿");
// cmd.finishMission("进入邪灵圣堂")
// cmd.acceptMission("狂战士珍尼","突如其来的消息");
// cmd.finishMission("突如其来的消息");
// cmd.acceptMission("邪灵教主","失去希望!");
// cmd.finishMission("失去希望!");
// cmd.acceptMission("丛林守卫-水雅","战略反击");
// cmd.killMonster([{name:"邪灵使者",count:8},{name:"邪灵刺客",count:5},{name:"邪灵屠虐者",count:1}]);
// cmd.finishMission("战略反击");
// cmd.acceptMission("狂战士珍尼","追击邪灵教主");
// cmd.killMonster([{name:"邪灵使者",count:8},{name:"邪灵刺客",count:8},{name:"邪灵屠虐者",count:2}]);
// cmd.finishMission("追击邪灵教主");
// cmd.acceptMission("丛林守卫-水雅","破坏邪灵法阵");
// cmd.acceptMission("","破坏右方邪灵法阵");
// cmd.killMonster([{name:"法阵守卫者", count:1}]);
// cmd.finishMission("破坏右方邪灵法阵");
// cmd.acceptMission("","破坏左方邪灵法阵");
// cmd.killMonster([{name:"法阵守卫者", count:1}]);
// cmd.finishMission("破坏左方邪灵法阵");
// cmd.finishMission("破坏邪灵法阵");
// cmd.acceptMission("丛林守卫-水雅","[精英任务]决战!");
// // TODO  更换好的装备

// do{
//     cmd.abandonMission("击败邪灵教主");
//     cmd.acceptMission("邪灵教主","击败邪灵教主");
// }while(cmd.player().getLevel() < 21);



// cmd.finishMission("击败邪灵教主");
// cmd.delay(2000);
// cmd.finishMission("[精英任务]决战!", "灼热弓");
// cmd.acceptMission("长老","英雄的诞生!");
// cmd.finishMission("英雄的诞生!");

// cmd.acceptMission("长老","获得新的城市");
// cmd.finishMission("获得新的城市");
// cmd.toCity();//进入自己的城市
// cmd.skipScene();
// cmd.killMonster([{name:"妖狼", count:12}]);



// cmd.missionTest();




//cmd.acceptMission("日常任务列表","月牙山初阶任务");
//cmd.jumpMap("新月古镇");
//cmd.acceptMission("","讨伐月牙山");
//cmd.finishMission("讨伐月牙山");







// cmd.acceptMission("天玄剑客","同伴");
// cmd.finishMission("同伴");
// cmd.acceptMission("天玄剑客","饿狼围攻");
// cmd.killMonster([{name:"妖狼", count:12}]);
// cmd.finishMission("饿狼围攻");
// cmd.acceptMission("天玄剑客","路途凶险");
// cmd.finishMission("路途凶险");
// cmd.acceptMission("天玄剑客","狼人的伏击");
// cmd.acceptMission("狼人","击败狼人");
// cmd.finishMission("击败狼人");
// cmd.finishMission("狼人的伏击");
// cmd.acceptMission("天玄剑客","魔鹰山");
// cmd.finishMission("魔鹰山");
// cmd.acceptMission("天玄剑客","猎杀魔鹰");
// cmd.killMonster([{name:"魔鹰", count:20}]);
// cmd.finishMission("猎杀魔鹰");
// cmd.acceptMission("天玄剑客","探索");
// cmd.finishMission("探索");


//-----------------不需要---------------------//
// cmd.acceptMission("神秘商人","魔鹰羽毛");
// cmd.killMonster([{name:"魔鹰", count:20}]);
// cmd.killMonsterWithItem(["魔鹰"], "魔鹰羽毛", 10);
// cmd.finishMission("魔鹰羽毛"); //卡在这里
//-----------------不需要---------------------//


// cmd.acceptMission("女兵尸体","翼兽的袭击");
// cmd.killMonster([{name:"巨大的翼兽", count:1}]);
// cmd.finishMission("翼兽的袭击");
// cmd.acceptMission("天玄剑客","翼兽");
// cmd.acceptMission("天玄剑客","骷髅的包围");
// cmd.killMonster([{name:"骷髅精", count:20}]);
// cmd.finishMission("骷髅的包围");
// cmd.acceptMission("天玄剑客","骷髅精");
// cmd.killMonster([{name:"骷髅精", count:20}]);
// cmd.finishMission("骷髅精");
// cmd.acceptMission("骷髅王","骷髅王");
// cmd.killMonster([{name:"骷髅王", count:1}]);
// cmd.finishMission("骷髅王");
// cmd.acceptMission("天玄剑客","完成月牙山初级阶段任务");

//cmd.finishMission("月牙山初阶任务"); //暂时不做  优化  传入NPC 名字

// cmd.acceptMission("天玄剑客","月牙山");
// cmd.jumpMap("月牙山");
// cmd.finishMission("月牙山");
// cmd.acceptMission("天玄剑客","可靠的援军");
// cmd.finishMission("可靠的援军");
// cmd.acceptMission("月狼宗宗主","是敌是友")
// cmd.finishMission("是敌是友");
// cmd.acceptMission("天玄剑客","误会");
// cmd.finishMission("误会");
// cmd.acceptMission("天玄剑客","同盟");
// cmd.finishMission("同盟");
// cmd.acceptMission("月狼宗宗主","骷髅兵");
// cmd.killMonster([{name:"骷髅兵", count:20}]);
// cmd.finishMission("骷髅兵");
// cmd.acceptMission("月狼宗宗主","继续战斗");
// cmd.finishMission("继续战斗");
// cmd.acceptMission("万兽宗宗主","鹰身人");
// cmd.killMonster([{name:"鹰身人", count:15}]);
// cmd.finishMission("鹰身人");
// cmd.acceptMission("万兽宗宗主","月狼出现");
// cmd.finishMission("月狼出现");
// cmd.acceptMission("月狼宗宗主","月狼族的委托");
// cmd.killMonster([{name:"月狼", count:20}]);
// cmd.finishMission("月狼族的委托");
// cmd.acceptMission("月狼族女","月之石的秘密");
// cmd.killMonster([{name:"月狼", count:20}]);
// cmd.finishMission("月之石的秘密");
// cmd.acceptMission("妖尊者","妖尊者的阴谋");
// cmd.finishMission("妖尊者的阴谋");
// cmd.acceptMission("妖尊者","月之石");
// cmd.finishMission("月之石");
// cmd.acceptMission("妖尊者","狂暴的鹰身人");

// cmd.killMonster([{name:"狂暴的鹰身人", count:12}]);
// cmd.finishMission("狂暴的鹰身人");
// cmd.acceptMission("妖尊者","援助");

// cmd.finishMission("援助");
// do{
//    cmd.abandonMission("破敌");  
//    cmd.acceptMission("天玄剑客","破敌");
//    cmd.npcBattle("妖尊者","消灭妖尊者");
// }while(cmd.player().getLevel() < 32);
//cmd.finishMission("破敌");
//cmd.acceptMission("天玄剑客","道路");
//cmd.jumpMap("五蛇山");
//cmd.finishMission("道路");
//cmd.acceptMission("天玄剑客","妖营");
//cmd.finishMission("妖营");
//cmd.acceptMission("天玄剑客","小恶魔");
//cmd.killMonster([{name:"小恶魔", count:8}]);
//cmd.finishMission("小恶魔");
//cmd.acceptMission("灵蛇守卫","妖蛇守卫");
//cmd.finishMission("妖蛇守卫");
//cmd.acceptMission("天玄剑客","试炼场");
//cmd.finishMission("试炼场");
//cmd.acceptMission("天玄剑客","突袭");
//cmd.killMonster([{name:"灵蛇守卫", count:1}]);
//cmd.finishMission("突袭");
//cmd.acceptMission("天玄剑客","蛇妖箭手");
//cmd.killMonster([{name:"蛇妖箭手", count:20}]);
//cmd.finishMission("蛇妖箭手");
//cmd.acceptMission("天玄剑客","双蛇守卫");
//cmd.finishMission("双蛇守卫");
//cmd.acceptMission("妖蛇守卫","双蛇");
//cmd.killMonster([{name:"灵蛇守卫", count:2}]);
//cmd.finishMission("双蛇");
//cmd.acceptMission("天玄剑客","灵蛇");
//cmd.finishMission("灵蛇");
//cmd.acceptMission("天玄剑客","灵草");
//cmd.killMonster([{name:"蛇女", count:15}]);
//cmd.finishMission("灵草");
//cmd.acceptMission("天玄剑客","五蛇现身");
//cmd.finishMission("五蛇现身");
//cmd.acceptMission("灵蛇","五灵蛇");
//cmd.killMonster([{name:"灵蛇", count:1}]);
//cmd.finishMission("五灵蛇");
//cmd.acceptMission("天玄剑客","完成月牙山中级任务");
//cmd.acceptMission("天玄剑客","妖王之地");
//cmd.jumpMap("月牙山巅");
//cmd.finishMission("妖王之地");
//cmd.acceptMission("天玄剑客","大战前夕");
//cmd.finishMission("大战前夕");
//cmd.acceptMission("蛮妖王","打败妖将");
//cmd.killMonster([{name:"妖将", count:12}]);
//cmd.finishMission("打败妖将");
//cmd.acceptMission("蛮妖王","打败蛮妖王");
//cmd.killMonster([{name:"蛮妖王", count:1}]);
//cmd.finishMission("打败蛮妖王");
//cmd.acceptMission("天玄剑客","妖王的先锋部队");
//cmd.killMonster([{name:"蛮兵", count:10}]);
//cmd.finishMission("妖王的先锋部队");
//cmd.acceptMission("天玄剑客","妖帅");
//cmd.acceptMission("妖帅","溃败");
//cmd.killMonster([{name:"蛮妖王", count:1}]);
//cmd.finishMission("溃败");
//cmd.finishMission("妖帅");
//cmd.acceptMission("天玄剑客","前进");
//cmd.finishMission("前进");
//cmd.acceptMission("天玄剑客","消灭徘徊的巫毒师");
//cmd.killMonster([{name:"巫毒师", count:12}]);
//cmd.finishMission("消灭徘徊的巫毒师");
//cmd.acceptMission("妖王","妖王现身");
//cmd.killMonster([{name:"妖将", count:10}]);
//cmd.finishMission("妖王现身");
//cmd.acceptMission("妖王","妖王的围截");
//cmd.killMonster([{name:"妖帅", count:2}]);
//cmd.finishMission("妖王的围截");
//cmd.acceptMission("天玄剑客","天玄出现");
//cmd.finishMission("天玄出现");
//cmd.acceptMission("天玄剑客","大军出动");
//cmd.finishMission("大军出动");
//cmd.acceptMission("天玄剑客","集合");
//cmd.finishMission("集合");
//cmd.acceptMission("月狼宗剑手","友军的援助");
//cmd.killMonster([{name:"蛮兵", count:10}]);
//cmd.finishMission("友军的援助");
//cmd.acceptMission("月狼宗刀手","友军的援助");
//cmd.killMonster([{name:"妖帅", count:2}]);
//cmd.finishMission("友军的援助");
//cmd.acceptMission("天玄剑客","最后的战斗");
//cmd.finishMission("最后的战斗");
//cmd.acceptMission("妖王","合力之战");
//cmd.killMonster([{name:"妖王", count:1}]);
//cmd.finishMission("合力之战");
//cmd.acceptMission("天玄剑客","完成月牙山高级阶段");



// 失魂沙漠的灾难  日常
//cmd.toCity();
//cmd.jumpMap("新月古镇");
//cmd.acceptMission("","失魂沙漠的灾难");

//cmd.finishMission("失魂沙漠的灾难");
//cmd.acceptMission("沙漠游牧民族代表","消灭恐怖的秃鹫群");
//cmd.acceptMission("","驱赶秃鹫群");
//cmd.killMonster([{name:"饥饿的秃鹫", count:20}]);
//cmd.finishMission("消灭恐怖的秃鹫群");
//cmd.acceptMission("沙漠游牧民族代表","鹰身人的威胁");
//cmd.killMonster([{name:"鹰身人哨兵", count:16}]);
//cmd.finishMission("鹰身人的威胁");
//cmd.acceptMission("沙漠游牧民族代表","火元素的侵袭");
//cmd.killMonster([{name:"火元素", count:16}]);
//cmd.finishMission("火元素的侵袭");
//cmd.acceptMission("沙漠游牧民族代表","赤炎戈壁的异变");
//cmd.acceptMission("沙漠游牧民族代表","沙漠上的尸体");
//cmd.finishMission("沙漠上的尸体");
//cmd.acceptMission("游民的尸体","游骑兵的袭击");
//cmd.finishMission("游骑兵的袭击");
//cmd.acceptMission("游骑首领","游骑兵");
//cmd.killMonster([{name:"游骑兵",count:10},{name:"游骑女兵",count:10}]);
//cmd.finishMission("游骑兵");
//cmd.acceptMission("游骑首领","疯狂的游民");
//cmd.killMonster([{name:"游骑首领", count:1}]);
//cmd.finishMission("疯狂的游民");
//cmd.acceptMission("游民的尸体","未完之事");
//cmd.finishMission("未完之事");
//cmd.acceptMission("沙漠游牧民族代表","游民的请求");
//cmd.jumpMap("沙漠营地");
//cmd.finishMission("游民的请求");
//cmd.acceptMission("沙漠游牧民族代表","沙漠营地");
//cmd.acceptMission("沙漠游牧民族代表","沙漠的原居民");
//cmd.killMonster([{name:"豹", count:12}]);
//cmd.finishMission("沙漠的原居民");
//cmd.acceptMission("沙漠游牧民族代表","前往营地");
//cmd.finishMission("前往营地");
//cmd.acceptMission("沙漠游牧民族代表","野兽的袭击");
//cmd.finishMission("野兽的袭击");
//cmd.acceptMission("紫豹王","紫豹王来袭");

//cmd.finishMission("紫豹王来袭");
//cmd.acceptMission("游民首领","游民的营地");
//cmd.finishMission("游民的营地");
//cmd.acceptMission("游民首领","疯狂的源头");
//cmd.finishMission("疯狂的源头");
//cmd.acceptMission("游民首领","疯狂的源头");
//cmd.finishMission("疯狂的源头");
//cmd.acceptMission("游民首领","阻止他们");
//cmd.killMonster([{name:"游民族人", count:18}]);
//cmd.finishMission("阻止他们");
//cmd.acceptMission("游民首领","疯狂元素");
//cmd.killMonster([{name:"迷幻之火", count:20}]);
//cmd.finishMission("疯狂元素");
//cmd.acceptMission("沙漠旅人","妻子的复仇");
//cmd.killMonster([{name:"游民族人", count:20}]);
//cmd.finishMission("妻子的复仇");
//cmd.acceptMission("地狱使者","地狱使者");
//cmd.finishMission("地狱使者");
//cmd.acceptMission("游骑兵","地狱之火");
//cmd.killMonster([{name:"地狱之火", count:20}]);
//cmd.finishMission("地狱之火");
//cmd.acceptMission("地狱使者","勾魂使");
//cmd.killMonster([{name:"地狱使者", count:1}]);
//cmd.finishMission("勾魂使");
//cmd.acceptMission("游骑兵","完成沙漠初级阶段任务");
//cmd.acceptMission("游骑兵","进入地狱");
//cmd.jumpMap("熔岩地狱一层");
//cmd.finishMission("进入地狱");
//cmd.acceptMission("游骑兵","熔岩地狱");
//cmd.finishMission("熔岩地狱");
//TODO
//cmd.acceptMission("小阎王","小阎王");
//cmd.finishMission("小阎王");
//cmd.acceptMission("小阎王","火元素的归顺");
//cmd.killMonster([{name:"火元素", count:20}]);
//cmd.finishMission("火元素的归顺");
//cmd.acceptMission("小阎王","地狱的势力");
//cmd.finishMission("地狱的势力");
//cmd.acceptMission("小阎王","警告鹰身人");
//cmd.killMonster([{name:"鹰身人", count:15}]);
//cmd.finishMission("警告鹰身人");
//cmd.acceptMission("鹰身人首领","鹰身人");
//cmd.killMonster([{name:"鹰身人首领", count:1}]);
//cmd.finishMission("鹰身人");
//cmd.acceptMission("小阎王","黑鬼兵");
//cmd.finishMission("黑鬼兵");
//cmd.acceptMission("小阎王","黑鬼军团");
//cmd.killMonster([{name:"黑鬼兵",count:12},{name:"黑鬼指挥官",count:1}]);
//cmd.finishMission("黑鬼军团");
//cmd.acceptMission("小阎王","探索地狱");
//cmd.finishMission("探索地狱");
//cmd.acceptMission("鬼将","地狱骑兵");
//cmd.killMonster([{name:"地狱骑兵", count:9}]);
//cmd.finishMission("地狱骑兵");
//cmd.acceptMission("鬼将","鬼将");
//cmd.killMonster([{name:"鬼将", count:1}]);
//cmd.finishMission("鬼将");
//cmd.jumpMap("熔岩地狱二层");
//cmd.acceptMission("黑鬼天王","黑鬼天王");
//cmd.finishMission("黑鬼天王");
//cmd.acceptMission("黑鬼天王","地狱的黑暗");
//cmd.acceptMission("嫉妒的小鬼","嫉妒的小鬼");
//cmd.killMonster([{name:"地狱业火",count:12},{name:"岩狱腐狮",count:12}]);
//cmd.killMonster([{name:"小鬼", count:15}]);
//cmd.finishMission("嫉妒的小鬼");
//cmd.finishMission("地狱的黑暗");
//cmd.acceptMission("黑鬼天王","地狱的业火");
//cmd.killMonster([{name:"地狱业火", count:8}]);
//cmd.finishMission("地狱的业火");
//cmd.acceptMission("黑鬼天王","地狱的饥饿");
//cmd.killMonster([{name:"岩狱腐狮", count:15}]);
//cmd.finishMission("地狱的饥饿");
//cmd.acceptMission("黑鬼天王","地狱的力量");
//cmd.finishMission("地狱的力量");
//cmd.acceptMission("黑鬼天王","地狱腐狮");
//cmd.killMonster([{name:"地狱腐狮",count:1},{name:"地狱翼狮",count:3}]);
//cmd.finishMission("地狱腐狮");
//cmd.acceptMission("黑鬼天王","熔岩地狱第三层");
//cmd.jumpMap("熔岩地狱三层");
//cmd.finishMission("熔岩地狱第三层");
//cmd.acceptMission("牛鬼","我是小阎王的盟军");
//do{
//    cmd.abandonMission("最强的妖兽");
//    cmd.acceptMission("小阎王","最强的妖兽");
//    cmd.killMonster([{name:"地狱腐狮",count:1},{name:"奇美拉",count:1}]);
//}while(cmd.player().getLevel() < 40);
//cmd.finishMission("最强的妖兽");
//cmd.acceptMission("小阎王","黑鬼兵团");
//cmd.killMonster([{name:"地狱业火",count:20},{name:"岩狱腐狮",count:20}]);
//cmd.finishMission("黑鬼兵团");
//cmd.acceptMission("小阎王","黑鬼天王");
//cmd.killMonster([{name:"黑鬼天王", count:1}]);
//cmd.finishMission("黑鬼天王");
//cmd.acceptMission("小阎王","小阎王的承诺");
//cmd.finishMission("小阎王的承诺");
//cmd.acceptMission("牛鬼","完成失魂沙漠高级阶段任务");
//cmd.finishMission("完成失魂沙漠高级阶段任务");
















// cmd.killMonster([{name:"骷髅王", count:1}]);
// cmd.finishMission("完成月牙山初级阶段任务");

// cmd.acceptMission("玄真道人","步步紧逼");
// cmd.acceptMission("吴用","击败魔天王吴用");
// cmd.acceptMission("魔天王吴星","击败魔天王吴星");

// cmd.finishMission("击败魔天王吴用");
// cmd.finishMission("击败魔天王吴星");
// cmd.finishMission("步步紧逼","百炼银龙剑");

// cmd.finishMission("击败魔教教主");

// cmd.acceptMission("教主任独行","强者的证明");
// cmd.finishMission("强者的证明");
// cmd.acceptMission("教主任独行","神龙降临");
// cmd.finishMission("神龙降临");
// cmd.acceptMission("神龙炎帝","你还是来迟了");
// cmd.finishMission("你还是来迟了");
// cmd.acceptMission("神龙炎帝","前往起源之地");
// cmd.jumpMap("起源之地");
// cmd.finishMission("前往起源之地");
// cmd.acceptMission("长老","英雄的诞生!");
// cmd.finishMission("英雄的诞生!");
// cmd.acceptMission("长老","获取新的城市");
// cmd.finishMission("获取新的城市");
// cmd.toCity();//进入自己的城市


// cmd.specialCode("85ri8zcztd");
// cmd.pollMail();
// cmd.useConsumableItem("人物经验卷(30000）");

// cmd.killMonster([{name:"火元素", count:100}]);
// cmd.sellRquip(1);
// cmd.outNpc();
// cmd.move(19,34);

// cmd.acceptMission("海伦","前往特洛伊");
// if(cmd.onLineDraw("活力药草")){
//     cmd.useConsumableItem("活力药草");
// }
// cmd.log(cmd.minDurability());
// cmd.acceptMission("侍卫军长","不速之客");
// cmd.alert(cmd.player().getLeaderID() + "");
// cmd.joinTeam(1946042038);
// cmd.alert("getId():" + cmd.player().getId());
// cmd.log("getSex()" + cmd.player().getSex());
// cmd.log("getRace()" + cmd.player().getRace());
// cmd.log("getJob()" + cmd.player().getJob());
// cmd.log("getIcon1()" + cmd.player().getIcon1());
// cmd.log("getIcon2()" + cmd.player().getIcon2());
// cmd.log("getIcon3()" + cmd.player().getIcon3());
// cmd.acceptMission("小阎王","小阎王");
//cmd.learnSkill("人物技能训练师", "战士","舍身一击", 4);
// cmd.learnSkill("宠物训练师", "睿智宠物技能训练","智力培训", 4);
// cmd.closeAutoAccept();//关闭 自动接受组队
//cmd.useConsumableItem("宠物蛋");

// var self = cmd.self();//自己
// var memebrs = cmd.members();
// for(var i = 0 ; i < memebrs.length; i++){
//     var member = memebrs[i];
//     cmd.master(member);//给队长
//     cmd.switchView(member, function(){
//         for(var i = 0 ; i < 200; i++){
//             //打怪
//         }
//     });
//     cmd.master(self);//给队长
// }


cmd.areaTest();
cmd.alert("完毕");
// java.lang.Thread.sleep(java.lang.Integer.MAX_VALUE);